package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.entity.FindJobEntity;
import com.sgb.kjwl.model.entity.FindJobRequestEntity;
import com.swgk.core.base.model.entity.H5ReEntity;
import com.swgk.core.util.PickSelectEntity;
import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface LookingforAJobAPI {


    //一级分类
    @FormUrlEncoded
    @POST("v2/app/packer/getfindJobFirstCategory")
    Call<BaseEntity<List<PickSelectEntity>>> getfindJobFirstCategory(@Field("areaCode") String areaCode);

    //二级分类
    @FormUrlEncoded
    @POST("v2/app/packer/getfindJobSecondCategory")
    Call<BaseEntity<List<PickSelectEntity>>>  getfindJobSecondCategory(@Field("no") String no);

    //找活干付款方式
    @FormUrlEncoded
    @POST("v2/app/packer/findJobSysPayWay")
    Call<BaseEntity<List<PickSelectEntity>>> getfindJobSysPayWay(@Field("areaCode") String areaCode);

    //找活干的列表
    @POST("v2/app/packer/findJob")
    Call<BaseEntity<List<FindJobEntity>>>  getFindJob(@Body Map map);

    //找活干的列表
    @POST("v2/app/packer/findJob")
    Call<BaseEntity<List<FindJobEntity>>>  getFindJob(@Body FindJobRequestEntity entity);

    //找活干的详情
    @FormUrlEncoded
    @POST("v2/app/packer/demandCenterDtail")
    Call<BaseEntity<List<PickSelectEntity>>> getDemandCenterDtail(@Field("no") String no, @Field("areaCode") String areaCode);

    //货主  订单详情  H5
    @FormUrlEncoded
    @POST("v1/app/common/getUrlSetting")
    Call<BaseEntity<H5ReEntity>> getUrlSetting(@Field("param") String param);



}
